package com.appointment.util;

import com.appointment.entity.Confirm;
import com.appointment.entity.Score;

/**
 * 判断上传信息是否为空
 * @author WSD
 *
 */
public class formifEmpty {
	
	public static boolean confirmifEmpty(Confirm confirm){
		if(confirm.getUsername()==null || confirm.getSex()==null || confirm.getIdentity()==null ||
				confirm.getStu_number()==null || confirm.getYear()==null || confirm.getMonth()==null || confirm.getProfession()==null ||
				confirm.getClasses()==null || confirm.getReason()==null){
			return false;
		}
		return true;
	}
	
	public static boolean scoreifEmpty(Score score){
		if(score.getUsername()==null || score.getStu_number()==null ||
				score.getReason()==null){
			return false;
		}
		return true;
	}
}
